<%--
  Created by IntelliJ IDEA.
  User: tantaro
  Date: 2022/12/14
  Time: 22:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>网上甜品商城</title>
  <style>
    body{
      padding: 0;
      margin: 0;
      height: 100vh;
      display: flex;
      justify-content: center;
      background-image: linear-gradient(#b68cd4 0%, #fbc2eb 100%);
      background-size: cover;
      flex: 1;
      align-items: center;
    }
    .login{
      text-align: center;
      margin: 0 auto;
      width: 450px;
      height: 580px;
      background-color: rgba(143, 131, 131, 0.15);
      border-radius: 25px;
      box-shadow: 5px 2px 35px -7px #fbacaf;
    }
    .login_form{
      padding: 15px;
    }
    .login img{
      position: relative;
      left: 50%;
      top: 50%;
      margin: 50px 0 0 -448px;
      filter: opacity(90%); /* 设置图片透明度 */
    }
    .login_form span{
      color: rgb(131, 220, 255);
      font-size: 20px;
      font-weight: 100;
    }
    .login_form input{
      background-color: transparent;
      width: 230px;
      padding: 2px;
      text-indent: 2px;
      color: white;
      font-size: 20px;
      height: 40px;
      margin: 30px 30px 30px 5px;
      outline: none;
      border: 0;
      border-bottom: 1px solid rgb(131, 220, 255);
    }
    input::placeholder{
      color: #ffcdf1;
      font-weight: 100;
      font-size: 18px;
      font-style: italic;
    }
    .login_btn{
      background-color: rgba(255, 255, 255, 0.582);
      border: 1px solid rgb(190, 225, 255);
      padding: 10px;
      width: 150px;
      height: 55px;
      border-radius: 30px;
      font-size: 27px;
      color: rgb(100, 183, 255);
      font-weight: 100;
      margin-top: 15px;
    }
    .login_btn:hover{
      box-shadow: 2px 2px 15px 2px rgb(190, 225, 255);
      background-color: transparent;
      color: rgb(237, 237, 237);
      /* 选择动画 */
      animation: login_mation 0.5s;
    }
  </style>
</head>
<body>
<script Language="javascript">
  function cancel(){
    alert("退出登陆！");
  }
  function login(){
    alert("登陆成功！");
  }
</script>

<div class="login">
  <div>
    <img alt="" src="img/头像.png" style="align-items: center; width: 165px; height: 165px; border-radius: 200px;">
  </div>
  <div class="login_form">
    <span>账号：</span>
    <input type="text" placeholder="请输入账号">
    <br>
    <span>密码：</span>
    <input type="password" placeholder="请输入密码">
  </div>
  <div class="btn">
    <button class="login_btn" onclick="login()">登 &nbsp;&nbsp;&nbsp;&nbsp;录</button>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <button class="login_btn" onclick="cancel()">取 &nbsp;&nbsp;&nbsp;&nbsp;消</button>
  </div>
</div>
</body>
</html>